using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class UI_YouDied : MonoBehaviour
{
    [SerializeField] GameObject RestarBotton;

    private Animator anim;

    private void Start()
    {
        anim = GetComponent<Animator>();
    }

    private void ShowRestartBotton()
    {
        RestarBotton.SetActive(true);
        RestarBotton.GetComponent<Animator>().SetBool("appear", true);
    }

    public void TryAgain()
    {
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }

    public void ShowYouDied() => anim.SetBool("YouDied", true);
}
